﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:XMLTV="clr-namespace:Guide.XMLTV" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
	xmlns:Guide="clr-namespace:Guide"
	x:Class="Guide.ProgramDetails"
	x:Name="UserControl"
	Width="328" Height="338" xmlns:d="http://schemas.microsoft.com/expression/blend/2008">

	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="AllResources.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			<XMLTV:ChannelLogoWidthValueConverter x:Key="ChannelLogoWidthValueConverter"/>
			<XMLTV:ChannelLogoSourceConvertor x:Key="ChannelLogoSourceConvertor"/>
			<XMLTV:WritersVisibilityValueConvertor x:Key="WritersVisibilityValueConvertor"/>
			<XMLTV:DirectorVisibilityValueConvertor x:Key="DirectorVisibilityValueConvertor"/>
			<XMLTV:ActorsVisibilityValueConvertor x:Key="ActorsVisibilityValueConvertor1"/>
			<XMLTV:ActorsVisibilityValueConvertor x:Key="ActorsVisibilityValueConvertor"/>
			<XMLTV:ColorVisibilityValueConvertor x:Key="ColorVisibilityValueConvertor"/>
			<XMLTV:FormatVisibilityValueConvertor x:Key="FormatVisibilityValueConvertor"/>
			<XMLTV:YearVisibilityValueConvertor x:Key="YearVisibilityValueConvertor"/>
			<XMLTV:LengthVisibilityValueConvertor x:Key="LengthVisibilityValueConvertor"/>
			<XMLTV:SubtitleVisibilityValueConvertor x:Key="SubtitleVisibilityValueConvertor"/>
			<XMLTV:DescriptionVisibilityValueConvertor x:Key="DescriptionVisibilityValueConvertor"/>
			<XMLTV:PresentersVisibilityValueConvertor x:Key="PresentersVisibilityValueConvertor"/>
			<XMLTV:CategoriesVisibilityValueConvertor x:Key="CategoriesVisibilityValueConvertor"/>
			<XMLTV:RatingsVisibilityValueConvertor x:Key="RatingsVisibilityValueConvertor"/>
			<XMLTV:ColorValueConvertor x:Key="ColorValueConvertor"/>
			<XMLTV:ChannelIDValueConvertor x:Key="ChannelIDValueConvertor"/>
			<Style x:Key="ListBoxItemStyle1" TargetType="{x:Type ListBoxItem}">
				<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
				<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
				<Setter Property="Padding" Value="2,0,0,0"/>
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type ListBoxItem}">
							<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
							</Border>
							<ControlTemplate.Triggers>
								<Trigger Property="IsSelected" Value="true"/>
								<MultiTrigger>
									<MultiTrigger.Conditions>
										<Condition Property="IsSelected" Value="true"/>
										<Condition Property="Selector.IsSelectionActive" Value="false"/>
									</MultiTrigger.Conditions>
								</MultiTrigger>
								<Trigger Property="IsEnabled" Value="false"/>
							</ControlTemplate.Triggers>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
			<Style x:Key="CategoriesItemsStyles" TargetType="{x:Type ListBoxItem}">
				<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
				<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
				<Setter Property="Padding" Value="2,0,0,0"/>
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type ListBoxItem}">
							<Border SnapsToDevicePixels="true" x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
								<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
							</Border>
							<ControlTemplate.Triggers>
								<Trigger Property="IsSelected" Value="true"/>
								<MultiTrigger>
									<MultiTrigger.Conditions>
										<Condition Property="IsSelected" Value="true"/>
										<Condition Property="Selector.IsSelectionActive" Value="false"/>
									</MultiTrigger.Conditions>
								</MultiTrigger>
								<Trigger Property="IsEnabled" Value="false"/>
							</ControlTemplate.Triggers>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
			<DataTemplate x:Key="CategoriesTemplate">
				<Label Content="{Binding}" Padding="0,0,0,0" Foreground="#FF000000" FontFamily="Calibri"/>
			</DataTemplate>
			<SolidColorBrush x:Key="ListBorder" Color="#828790"/>
			<Style x:Key="CategoriesListBoxStyle1" TargetType="{x:Type ListBox}">
				<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
				<Setter Property="BorderBrush" Value="{StaticResource ListBorder}"/>
				<Setter Property="BorderThickness" Value="1"/>
				<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
				<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
				<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
				<Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
				<Setter Property="VerticalContentAlignment" Value="Center"/>
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type ListBox}">
							<Border SnapsToDevicePixels="true" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
								<ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}" x:Name="scrollViewer" Foreground="#FF000000">
									<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
								</ScrollViewer>
							</Border>
							<ControlTemplate.Triggers>
								<Trigger Property="IsEnabled" Value="false"/>
								<Trigger Property="IsGrouping" Value="true">
									<Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
								</Trigger>
							</ControlTemplate.Triggers>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
			<DataTemplate x:Key="ChannelsTemplate">
				<StackPanel Width="330">
					<StackPanel.Background>
						<LinearGradientBrush EndPoint="0.5,0.011" StartPoint="0.5,0">
							<GradientStop Color="#FFC7C7C7" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</StackPanel.Background>
					<Image Source="{Binding Path=IconUrl}" HorizontalAlignment="Left" Margin="12,10,0,0" Width="40" Height="40"/>
					<ItemsControl ItemsSource="{Binding Path=Programs}" Width="320" Margin="0,-31,0,0">
						<ItemsControl.ItemTemplate>
							<DataTemplate>
								<DataTemplate.Resources>
									<Storyboard x:Key="Highlight">
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
											<SplineColorKeyFrame KeyTime="00:00:00" Value="#001D97DC"/>
											<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#331D97DC"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
									<Storyboard x:Key="OffLight">
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel" Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)">
											<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#001D97DC"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</DataTemplate.Resources>
								<StackPanel Background="#001D97DC" x:Name="stackPanel" Cursor="Hand">
									<Grid Width="259" Height="Auto" Margin="28,0,0,0">
										<Label Content="{Binding Path=StartTimeShort, Mode=Default}" x:Name="_hour" Padding="0,2,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="19,0,0,0" Width="Auto" FontFamily="Calibri" FontSize="11" FontStyle="Italic" RenderTransformOrigin="0.587,0.877"/>
										<TextBlock Text="{Binding Path=Title}" FontFamily="Calibri" Padding="0,0,0,0" Margin="55,0,0,0" VerticalAlignment="Top" d:LayoutOverrides="Height" FontWeight="Bold" FontSize="14" TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" x:Name="_title"/>
										<StackPanel VerticalAlignment="Bottom" Height="Auto" Margin="51,13,0,4" Orientation="Horizontal">
											<ListBox IsSynchronizedWithCurrentItem="True" ItemContainerStyle="{DynamicResource CategoriesItemsStyles}" ItemTemplate="{DynamicResource CategoriesTemplate}" ItemsSource="{Binding Path=Categories, Mode=Default}" Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}" x:Name="_cats" Width="Auto" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled" IsEnabled="False" Style="{DynamicResource CategoriesListBoxStyle1}"/>
											<Label Content="{Binding Path=LengthFormated, Mode=Default}" x:Name="_length" Padding="5,2,0,0" FontFamily="Calibri"/>
										</StackPanel>
									</Grid>
									<Rectangle Fill="{x:Null}" Stroke="#18000000"/>
								</StackPanel>
								<!--<DataTemplate.Triggers>
								<Trigger Property="IsMouseOver" Value="True">
									<Trigger.ExitActions>
                    <BeginStoryboard Storyboard="{StaticResource OffLight}" x:Name="OffLight_BeginStoryboard"/>
									</Trigger.ExitActions>
									<Trigger.EnterActions>
										<BeginStoryboard Storyboard="{StaticResource Highlight}"/>
									</Trigger.EnterActions>
								</Trigger>
							</DataTemplate.Triggers>-->
							</DataTemplate>
						</ItemsControl.ItemTemplate>
					</ItemsControl>
				</StackPanel>
			</DataTemplate>
			<ObjectDataProvider x:Key="GuideDS" d:IsDataSource="True" ObjectType="{x:Type XMLTV:Guide}"/>
		</ResourceDictionary>
	</UserControl.Resources>
	<UserControl.DataContext>
		<XMLTV:Program/>
	</UserControl.DataContext>

	<ScrollViewer Background="#FFDADADC" x:Name="LayoutRoot" Template="{DynamicResource ScrollViewerControlTemplate1}">
		<Border Width="282" Height="Auto" Background="#FFFFFFFF" BorderBrush="#FFA6AAAB" BorderThickness="1,1,1,1" CornerRadius="10,10,10,10" Margin="10,5,10,20" Padding="0,0,0,15" VerticalAlignment="Top">
			<StackPanel>
				<Grid Height="Auto">
					<Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Width="Auto" Height="1" Fill="#7FA6AAAB" Stroke="{x:Null}"/>
					<StackPanel HorizontalAlignment="Stretch" Margin="20,0,0,10" Width="Auto">
						<TextBlock x:Name="_title" Width="Auto" FontFamily="Calibri" FontSize="18" FontWeight="Bold" Text="{Binding Path=Title, Mode=Default}" TextWrapping="WrapWithOverflow" Margin="0,0,10,0"/>
						<StackPanel x:Name="_channel" Width="Auto" Background="{x:Null}" Orientation="Horizontal" Margin="0,5,0,0">
							<Image Width="{Binding Path=ChannelId, Converter={StaticResource ChannelLogoWidthValueConverter}, Mode=Default}" Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Center" Source="{Binding Path=ChannelId, Converter={StaticResource ChannelLogoSourceConvertor}, Mode=Default}" Stretch="UniformToFill"/>
							<TextBlock x:Name="_dateTime" Width="Auto" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Text="{Binding Path=StartTimeShort, Mode=Default}" TextWrapping="Wrap" d:LayoutOverrides="Height" Margin="10,0,0,0" VerticalAlignment="Center"/>
						</StackPanel>
						<Guide:Ratings Height="22" Rating="{Binding Path=Rating, Mode=Default}" Background="{x:Null}" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Width="Auto" MaxRating="{Binding Path=MaxRating, Mode=Default}" Visibility="{Binding Path=OriginalRatingString, Converter={StaticResource RatingsVisibilityValueConvertor}, Mode=Default}"/>
					</StackPanel>
				</Grid>
				<StackPanel Margin="0,7,0,0" Height="Auto">
					<Grid x:Name="_categoriesBlock" Width="274" Height="Auto" HorizontalAlignment="Left" Margin="0,5,0,0" Visibility="{Binding Path=Categories, Converter={StaticResource CategoriesVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Category" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<ListBox RenderTransformOrigin="0.5,0.5" IsSynchronizedWithCurrentItem="True" ItemContainerStyle="{DynamicResource CategoriesItemsStyles}" ItemTemplate="{DynamicResource CategoriesTemplate}" ItemsSource="{Binding Path=Categories, Mode=Default}" BorderBrush="{x:Null}" x:Name="_categories" Grid.Column="1" Margin="-4,0,0,0" IsEnabled="False" Style="{DynamicResource CategoriesListBoxStyle1}">
							<ListBox.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1" ScaleY="1"/>
									<SkewTransform AngleX="0" AngleY="0"/>
									<RotateTransform Angle="0"/>
									<TranslateTransform X="0" Y="-2"/>
								</TransformGroup>
							</ListBox.RenderTransform>
						</ListBox>
					</Grid>
					<Grid x:Name="_presenterBlock" Width="274" Height="Auto" Margin="0,5,0,0" Visibility="{Binding Path=Credits, Converter={StaticResource PresentersVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Presenter(s)" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<ListBox IsSynchronizedWithCurrentItem="True" ItemContainerStyle="{DynamicResource CategoriesItemsStyles}" ItemTemplate="{DynamicResource CategoriesTemplate}" ItemsSource="{Binding Path=Credits.Presenter, Mode=Default}" BorderBrush="{x:Null}" x:Name="_presenters" Grid.Column="1" IsEnabled="False" Style="{DynamicResource CategoriesListBoxStyle1}"/>
					</Grid>
					<Grid HorizontalAlignment="Left" Margin="0,5,0,0" x:Name="_descBlock" Width="274" Height="Auto" Visibility="{Binding Path=Description, Converter={StaticResource DescriptionVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Description" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<TextBlock x:Name="_description" FontFamily="Calibri" Text="{Binding Path=Description, Mode=Default}" TextWrapping="WrapWithOverflow" Margin="0,0,5,0" Grid.Column="1" TextAlignment="Justify"/>
					</Grid>
					<Grid x:Name="_subtitleBlock" Width="274" Height="Auto" HorizontalAlignment="Left" Margin="0,5,0,0" Visibility="{Binding Path=SubTitle, Converter={StaticResource SubtitleVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Subtitle" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<TextBlock x:Name="_subtitle" FontFamily="Calibri" Text="{Binding Path=SubTitle, Mode=Default}" TextWrapping="WrapWithOverflow" Margin="0,0,5,0" Grid.Column="1" TextAlignment="Justify"/>
					</Grid>
					<Grid x:Name="_lengthBlock" Width="274" Height="14.65" HorizontalAlignment="Left" Margin="0,5,0,0" Visibility="{Binding Path=Length, Converter={StaticResource LengthVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Length" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<TextBlock x:Name="_length" FontFamily="Calibri" Text="{Binding Path=LengthFormated, Mode=Default}" TextWrapping="WrapWithOverflow" Grid.Column="1"/>
					</Grid>
					<Grid x:Name="_yearBlock" Width="274" Height="14.65" HorizontalAlignment="Left" Margin="0,5,0,0" Visibility="{Binding Path=Date.Year, Converter={StaticResource YearVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Year" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<TextBlock x:Name="_year" FontFamily="Calibri" Text="{Binding Path=Date.Year, Mode=Default}" TextWrapping="WrapWithOverflow" Grid.Column="1"/>
					</Grid>
					<Grid x:Name="_formatBlock" Width="274" Height="Auto" Margin="0,5,0,0" Visibility="{Binding Path=Video, Converter={StaticResource FormatVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Format" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<TextBlock x:Name="_aspect" FontFamily="Calibri" Text="{Binding Path=Video.Format, Mode=Default}" TextWrapping="WrapWithOverflow" Margin="0,0,5,0" Grid.Column="1" TextAlignment="Justify"/>
					</Grid>
					<Grid x:Name="_colourBlock" Width="274" Height="Auto" HorizontalAlignment="Left" Margin="0,5,0,0" Visibility="{Binding Path=Video, Converter={StaticResource ColorVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Color" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<TextBlock x:Name="_color" FontFamily="Calibri" Text="{Binding Path=Video.InColor, Converter={StaticResource ColorValueConvertor}, Mode=Default}" TextWrapping="WrapWithOverflow" Margin="0,0,5,0" Grid.Column="1" TextAlignment="Justify"/>
					</Grid>
					<Grid x:Name="_actorsBlock" Width="274" Height="Auto" HorizontalAlignment="Left" Margin="0,5,0,0" Visibility="{Binding Path=Credits, Converter={StaticResource ActorsVisibilityValueConvertor}, Mode=OneWay}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Actor(s)" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<ListBox RenderTransformOrigin="0.5,0.5" IsSynchronizedWithCurrentItem="True" ItemContainerStyle="{DynamicResource CategoriesItemsStyles}" ItemTemplate="{DynamicResource CategoriesTemplate}" ItemsSource="{Binding Path=Credits.Actors, Mode=Default}" BorderBrush="{x:Null}" x:Name="_actors" Grid.Column="1" Margin="-4,0,0,0" IsEnabled="False" Style="{DynamicResource CategoriesListBoxStyle1}">
							<ListBox.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1" ScaleY="1"/>
									<SkewTransform AngleX="0" AngleY="0"/>
									<RotateTransform Angle="0"/>
									<TranslateTransform X="0" Y="-2"/>
								</TransformGroup>
							</ListBox.RenderTransform>
						</ListBox>
					</Grid>
					<Grid x:Name="_writerBlock" Width="274" Height="Auto" HorizontalAlignment="Left" Margin="0,5,0,0" Visibility="{Binding Path=Credits, Converter={StaticResource WritersVisibilityValueConvertor}, Mode=Default}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Writer(s)" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<ListBox RenderTransformOrigin="0.5,0.5" IsSynchronizedWithCurrentItem="True" ItemContainerStyle="{DynamicResource CategoriesItemsStyles}" ItemTemplate="{DynamicResource CategoriesTemplate}" ItemsSource="{Binding Path=Credits.Writer, Mode=Default}" BorderBrush="{x:Null}" x:Name="_writers" Grid.Column="1" Margin="-4,0,0,0" IsEnabled="False" Style="{DynamicResource CategoriesListBoxStyle1}">
							<ListBox.RenderTransform>
								<TransformGroup>
									<ScaleTransform ScaleX="1" ScaleY="1"/>
									<SkewTransform AngleX="0" AngleY="0"/>
									<RotateTransform Angle="0"/>
									<TranslateTransform X="0" Y="-2"/>
								</TransformGroup>
							</ListBox.RenderTransform>
						</ListBox>
					</Grid>
					<Grid x:Name="_directorBlock" Width="274" Height="Auto" Margin="0,5,0,0" Visibility="{Binding Path=Credits, Converter={StaticResource DirectorVisibilityValueConvertor}, Mode=Default}" HorizontalAlignment="Left">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="0.318*"/>
							<ColumnDefinition Width="0.682*"/>
						</Grid.ColumnDefinitions>
						<TextBlock Width="Auto" Height="Auto" FontFamily="Calibri" FontWeight="Bold" Foreground="#FFA4B6B6" Text="Director" TextWrapping="Wrap" d:LayoutOverrides="Width" HorizontalAlignment="Right" Margin="0,0,7,0"/>
						<TextBlock x:Name="_director" FontFamily="Calibri" Text="{Binding Path=Credits.Director, Mode=Default}" TextWrapping="WrapWithOverflow" Margin="0,0,5,0" Grid.Column="1" TextAlignment="Justify"/>
					</Grid>
				</StackPanel>
			</StackPanel>
		</Border>
	</ScrollViewer>
</UserControl>